package com.blog.service;

import com.blog.mapper.SysDictionaryItemMapper;
import com.blog.dictionary.SysDictionaryItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 字典子项表 服务类
 * @author oldA
 * @description oldA代码生成器
 * @since 01-05
 */
@Service
public class SysDictionaryItemService {
      @Autowired
      SysDictionaryItemMapper sysDictionaryItemMapper;

      public String selectByDictCodeAndItemCode(String dictCode, String itemCode){
            SysDictionaryItem sysDictionaryItem = sysDictionaryItemMapper.selectByDictCodeAndItemCode(dictCode,itemCode);
            if(sysDictionaryItem != null){
                  return sysDictionaryItem.getItemName();
            }
            return null;
      };
}
